<include file="Public:pagerForm" />

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="__URL__" method="post">
	<div class="searchBar">
         <table class="searchContent">
          <tr>
           <td>关键字查询：</td>
           <td><input type="text" name="selectname" value="{$_POST['selectname']}" /></td>
           <td>
           <select name="p_typename" class="combox">
            <option value="">所有类型</option>
             <volist name="typeList" id="vo">
               <option value="{$vo['p_typename']}" <eq name="_POST['p_typename']" value="$vo['p_typename']" >selected</eq>>{$vo['p_typename']}</option>
             </volist>   				
	       </select>
           </td>
           </tr>
         </table>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检 索</button></div></div></li>
                <li><a class="button" href="__URL__/advancedSelect" target="dialog" mask="true" title="高级检索框"><span>高级检索</span></a></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="__URL__/add" target="dialog" mask="true" width="700" height="650"><span>新增商品</span></a></li>
            <li><a class="add" href="__URL__/uploadexcel" target="dialog" mask="true" width="500" height="200"><span>批量导入</span></a></li>
			<li><a class="delete" href="__URL__/foreverdelete/id/{sid_user}/navTabId/__MODULE__" target="ajaxTodo" title="你确定要删除吗？" warn="请选择用户"><span>删除商品</span></a></li>
			<li><a class="edit" href="__URL__/edit/id/{sid_user}" target="dialog" mask="true" warn="请选择商品" width="700" height="650"><span>编辑商品</span></a></li>
			<li class="line">line</li>
            <li><a class="edit" href="__URL__/uploadimg/id/{sid_user}" target="dialog" mask="true" warn="请选择商品" width="700" height="400"><span>上传商品图片</span></a></li>
		    <li><a class="edit" href="__URL__/uploadfiles/id/{sid_user}" target="dialog" mask="true" warn="请选择商品" width="600" height="350"><span>上传商品附件</span></a></li>
            <li class="line">line</li>
            <!--<li><a class="icon" href="__URL__/outExcel.xls" target="dwzExport" targetType="navTab" title="确定导出这些记录吗?"><span>导出EXCEL</span></a></li>-->
		    <li><a class="icon" href="javascript:$.printBox('w_list_print')"><span>打印</span></a></li>
        </ul>
	</div>
<div  id="w_list_print">
	<table class="table" layoutH="138">
		<thead>
		<tr>
			<th align=center>编号</th>
			<th align=center orderField="prodname" <if condition="$_REQUEST._order eq 'prodname'">class="{$_REQUEST._sort}"</if>>商品全称</th>
            <th align=center orderField="p_typename" <if condition="$_REQUEST._order eq 'p_typename'">class="{$_REQUEST._sort}"</if>>类型</th>
			<th align=center orderField="partnumber" <if condition="$_REQUEST._order eq 'partnumber'">class="{$_REQUEST._sort}"</if>>料号</th>
			<th align=center orderField="partmodel" <if condition="$_REQUEST._order eq 'partmodel'">class="{$_REQUEST._sort}"</if>>型号</th>
			<th align=center orderField="prodsize" <if condition="$_REQUEST._order eq 'prodsize'">class="{$_REQUEST._sort}"</if>>规格</th>
            <th align=center orderField="pmaterial" <if condition="$_REQUEST._order eq 'pmaterial'">class="{$_REQUEST._sort}"</if>>材质</th>
            <th align=center orderField="porigin" <if condition="$_REQUEST._order eq 'porigin'">class="{$_REQUEST._sort}"</if>>产地</th>
            <th align=center orderField="pbrand" <if condition="$_REQUEST._order eq 'pbrand'">class="{$_REQUEST._sort}"</if>>品牌</th>
			<th align=center orderField="unit" <if condition="$_REQUEST._order eq 'unit'">class="{$_REQUEST._sort}"</if>>单位</th>
            <th align=center orderField="presale" <if condition="$_REQUEST._order eq 'presale'">class="{$_REQUEST._sort}"</if>>预设售价</th>
            <th align=center orderField="updatetime" <if condition="$_REQUEST._order eq 'updatetime'">class="{$_REQUEST._sort}"</if>>更新时间</th>
            <th align=center orderField="status" <if condition="$_REQUEST._order eq 'status'">class="{$_REQUEST._sort}"</if>>状态</th>
            <th align=center>操作</th>
            <th align=center>供货信息</th>
            <th align=center>备注</th>
		</tr>
		</thead>
		<tbody>
		<volist id="vo" name="list">
			<tr target="sid_user" rel="{$vo['id']}">
				<td align=center>{$key+1}</td>
				<td><a href="__URL__/showinfo/id/{$vo['id']}" class="showinfo" title="查看[ {$vo['prodname']} ]商品信息" target="dialog" mask="true" width="900" height="650">{$vo['prodname']}</a></td>
                <td>{$vo['p_typename']}</td>
				<td>{$vo['partnumber']}</td>
				<td>{$vo['partmodel']}</td>
                <td>{$vo['prodsize']}</td>
                <td>{$vo['pmaterial']}</td>
                <td>{$vo['porigin']}</td>
                <td>{$vo['pbrand']}</td>             
				<td align=center>{$vo['unit']}</td>
                <td align=center>{$vo['presale']}</td>
                <td align=center>{$vo['updatetime']|date="Y-m-d H:i:s",###}</td>
				<td align=center>{$vo['status']|getStatus}</td>
                <td align=center>{$vo['status']|showStatus=$vo['id']}</td>
                <td>{$vo['supinfo']}</td>
                <td>{$vo['remarks']}</td>
			</tr>
		</volist>
		</tbody>
	</table>
</div>
	<div class="panelBar">
		<div class="pages">
			<span>共{$totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}"></div>
	</div>

</div>


